package frobagroup.repositories.backstage;

import frobagroup.entities.backstage.CarouselFigure;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

/**
 * Created by Tinsley on 2017/6/19.
 */
public interface CarouselFigureRepository extends MongoRepository<CarouselFigure,String> {

    List<CarouselFigure> findByStatus(String status);
    List<CarouselFigure> findByWhichType(boolean whichType);
    List<CarouselFigure> findByStatusAndWhichType(String status,boolean whichType);
}
